<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class Version3 extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('mall_goods', function (Blueprint $table) {
            $table->integer('day')->after('content');
            $table->integer('day_count')->after('content');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('mall_goods', function (Blueprint $table) {
            $table->dropColumn(['day', 'day_count']);
        });
    }
}
